package com.xiaowu.xblog.entity;

import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 用户表实体类
 */
@Data
@TableName("sys_user")
public class SysUser extends BaseEntity{

    @Override
    public Long getId() {
        return super.getId();
    }

    @Schema(description = "用户名，唯一，不允许为空")
    @TableField("username")
    private String username;

    @Schema(description = "密码，经过加密存储，不允许为空")
    @TableField("password")
    private String password;

    @Schema(description = "昵称")
    @TableField("nickname")
    private String nickname;

    @Schema(description = "头像URL")
    @TableField("avatar_url")
    private String avatarUrl;

    @Schema(description = "邮箱")
    @TableField("email")
    private String email;

    @Schema(description = "GitHub用户ID或用户名")
    @TableField("github_id")
    private String githubId;

    @Schema(description = "是否启用，默认true")
    @TableField("is_enabled")
    private Boolean isEnabled;

}
